﻿using DDD.Simple.DomainBase;
using System;
using System.Collections.Generic;
using System.Text;

namespace Dealer.Domain.AggregateModels.AccountAggregate
{
    public class Account
        : IAggregationRoot
    {
        public string Code { get; set; }
        public Guid Id { get; set; }
        public string Pwd { get; set; }
        public Guid DealerId { get; set; }
        public Account CreateAccount(Guid dealerId, string mobile, string pwd)
        {
            DealerId = dealerId;
            Code = mobile;
            Pwd = pwd;

            return this;
        }
    }
}
